﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="Eyelist.aspx.vb" Inherits="Macrography.Eye" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2>&nbsp;</h2>
   <asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>

   <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
    DataKeyNames="Img_Id" DataSourceID="SqlDataSource1">
       <Columns>
           <asp:BoundField DataField="Img_Id" HeaderText="Img_Id" 
               SortExpression="Img_Id" InsertVisible="False" ReadOnly="True" />
           <asp:BoundField DataField="Img_Description" HeaderText="Img_Description" 
               SortExpression="Img_Description" />
           <asp:ImageField DataImageUrlField="Images">
               <ControlStyle Height="200px" Width="200px" />
           </asp:ImageField>
           <asp:HyperLinkField DataNavigateUrlFields="Img_Id" 
               DataNavigateUrlFormatString="EyeDetail.aspx?Img_Id={0}" Text="Detail" />
       </Columns>
</asp:GridView>
<asp:SqlDataSource ID="SqlDataSource1" runat="server" 
    ConnectionString="<%$ ConnectionStrings:MacrgraphyConnectionString %>" 
    ProviderName="<%$ ConnectionStrings:MacrgraphyConnectionString.ProviderName %>" 
    
        
        SelectCommand="SELECT [Img_Id], [Images], [Img_Description] FROM [Images] WHERE ([Cat_Id] = ?)">
    <SelectParameters>
        <asp:Parameter DefaultValue="3" Name="Cat_Id" Type="Int32" />
    </SelectParameters>
</asp:SqlDataSource>

   <asp:Panel ID="panelContainer" runat="server">       
       <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                    <ContentTemplate>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        <%--<asp:Image ID="image1" runat="server" ImageUrl="~/images/Eye/Image1.jpg"  Height="350 px" Width="800 px"  />--%>
                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                               
                                              
                        <br />
                        <br />
                       
                     
                    </ContentTemplate>
                </asp:UpdatePanel>
                     
               
               
                
           
            </asp:Panel>

      
    
    
   
</asp:Content>
